<template>
  <div>
    <div class="video-cell" @click="onGoDetail">
      <div class="left">
        <video class="video" :src="require('@/assets/video/ceshi.mp4')"></video>
      </div>
      <div class="right">
        <div class="title">中国人民政治协商会议第十三届全国委员会.</div>
        <div class="date">党建新闻 2018-04-13 15:21:26</div>
      </div>
    </div>
    <div class="video-cell" @click="onGoDetail">
      <div class="left">
        <video class="video" :src="require('@/assets/video/ceshi.mp4')"></video>
      </div>
      <div class="right">
        <div class="title">中国人民政治协商会议第十三届全国委员会.</div>
        <div class="date">党建新闻 2018-04-13 15:21:26</div>
      </div>
    </div>
    <div class="video-cell" @click="onGoDetail">
      <div class="left">
        <video class="video" :src="require('@/assets/video/ceshi.mp4')"></video>
      </div>
      <div class="right">
        <div class="title">中国人民政治协商会议第十三届全国委员会.</div>
        <div class="date">党建新闻 2018-04-13 15:21:26</div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: ['data', 'type'],
  data () {
    return {}
  },
  methods: {
    onGoDetail () {
      this.$router.push({
        path: '/subject/detail/video'
        // query: {
        //   id: this.data.id
        // }
      })
    }
  }
}
</script>
<style lang="less" scoped>
.video-cell {
  display: flex;
  width: 100%;
  padding: 20px 0;
  border-bottom: 1px dashed #e5e5e5;
  background-color: #fff;
  .right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 5px;
    .title {
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      /*! autoprefixer: off*/
      -webkit-box-orient: vertical;
      /* autoprefixer: on*/
      -webkit-line-clamp: 2;
      font-size: 14px;
    }
    .date {
      font-size: 12px;
      color: #999;
    }
  }
  .left {
    flex: 0 0 115px;
    width: 115px;
    height: 75px;
    margin-right: 8px;
    video {
      display: block;
      width: 100%;
      height: 100%;
      border-radius: 6px;
    }
  }
}
</style>
